
//系统目录 / 采购退货 接口相关的函数
import request from "../../untils/request.js"

/**
 * 
 *  post
 *  
 */

// 新建采购退货
export const addOutbound = (data) => {
    return request.post("/outpatient/docOut/addOutbound", data )
}

/**
 * 
 * put
 *  
 */

// 修改采购退货
export const editdocOut = (data) => {
    return request.put("/outpatient/docOut", data )
}
// 提交审核过单 => 采购退库
export const toRetnExamine = (data) => {
    return request.post("/outpatient/docOut/toRetnExamine", data)
}

/**
 * 
 * get 
 *  
 */
// 供应商列表
export const SupplierEntityList = (params) => {
    return request.get("/outpatient/selectSupplierEntityList", { params })
    }
// 用于选择采购选择药品
export const getWare = (params) => {
    return request.get("/outpatient/getWare", { params })
}
// 采购退货列表
export const shopReturnList = (params) => {
    return request.get("/outpatient/docOut/page", { params })
}
// 采购退货详情页
export const docOutgetRetnList = (params) => {
    return request.get("/outpatient/docOut/getRetnList", { params })
}
// 出库方式
export const getTretn = (params) => {
    return request.get("/outpatient/docOut/getTretn", { params })
}
// 新建退药，供应商
export const selectDropDownList = (params) => {
    return request.get("/outpatient/selectDropDownList", { params })
}
// 新建退药，选择药品
export const selectDrug = (params) => {
    return request.get("/outpatient/docOut/selectDrug", { params })
}
// 西药出库点击加入
export const docOutJoin = (params) => {
    return request.get("/outpatient/docOut/join", { params })
}
/*
 * 
 * DELETE 
 *   
 */  
export const docOutDel = (params) => {
    return request.delete("/outpatient/docOut/deleteBy", { params })
}

// 暴露
export default{
	addOutbound,editdocOut,SupplierEntityList,getWare,docOutDel,toRetnExamine,
	shopReturnList,getTretn,docOutgetRetnList,
	selectDropDownList,selectDrug,docOutJoin
	
}